package poly;

public class StudentXW extends Student{
    private String responsibility;

    public StudentXW(int studentId, String name, double EnglishGrade, double MathGrade, double ComputerGrade, String responsibility){
        super(studentId,name,EnglishGrade,MathGrade,ComputerGrade);
        this.responsibility = responsibility;
    }

    public String toString(){
        return super.toString() + " responsibility:" + responsibility;
    }

    @Override
    public double textScore() {
        return super.textScore() + 3;
    }
}
